package com.rookie.tool.module.util.trigger.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.HashMap;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author rookie
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(TestConfig.class);
        TestService bean = applicationContext.getBean(TestService.class);
        bean.test(new Person().setAge(11));
    }
}
